<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>JsChartViewer.getPlotAreaMouseX</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="JsChartViewer.htm">JsChartViewer</a>.<wbr>getPlotAreaMouseX</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
getPlotAreaMouseX()
</div>
<p class="heading2">Description</p>
<div class="content">
Gets the mouse or touch x-coordinate on the plot area in the chart pixel coordinate system.<br><br>
If the mouse cursor or touch point is not on the plot area, but is on the extended plot area (see <a href="JsChartViewer.setPlotAreaMouseMargin.htm">JsChartViewer.setPlotAreaMouseMargin</a>), this method will behave as if the mouse cursor or touch point is on the nearest plot area edge.<br><br>
If the mouse cursor or touch point is not even on the extended plot area mouse region, this method will return the last coordinate when the mouse cursor or touch point was still on the extended plot area.<br><br>
This method is only valid when called inside the <a href="JsChartViewer.MouseMoveChart.htm">JsChartViewer.MouseMoveChart</a>, <a href="JsChartViewer.MouseMovePlotArea.htm">JsChartViewer.MouseMovePlotArea</a>, <a href="JsChartViewer.TouchStartChart.htm">JsChartViewer.TouchStartChart</a>, <a href="JsChartViewer.TouchStartPlotArea.htm">JsChartViewer.TouchStartPlotArea</a>, <a href="JsChartViewer.TouchMoveChart.htm">JsChartViewer.TouchMoveChart</a> or <a href="JsChartViewer.TouchMovePlotArea.htm">JsChartViewer.TouchMovePlotArea</a> events.
</div>
<p class="heading2">Arguments</p>
<div class="content">None</div>
<p class="heading2">Return Value</p>
<div class="content">
The mouse or touch x-coordinate in the chart pixel coordinate system.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
